import requests
class ApiClient():
    def __init__(self,url='http://10.59.9.12:7001/'):
        self.url=url
        self.session=requests.session()
    def post(self,path,headers=None,data=None,json=None,params=None,timeout=10):
        url=f"{self.url}{path}"
        return self.session.post(url,headers=headers,data=data,json=json,params=params,timeout=timeout)
    def put(self,path,headers=None,data=None,json=None,params=None,timeout=10):
        url=f"{self.url}{path}"
        return self.session.put(url,headers=headers,data=data,json=json,params=params,timeout=timeout)
    def get(self,path,headers=None,data=None,json=None,params=None,timeout=10):
        url=f"{self.url}{path}"
        return self.session.get(url,headers=headers,data=data,json=json,params=params,timeout=timeout)
    def delete(self,path,headers=None,data=None,json=None,params=None,timeout=10):
        url=f"{self.url}{path}"
        return self.session.delete(url,headers=headers,data=data,json=json,params=params,timeout=timeout)